package com.school.edupoint;




import com.school.edupoint.properties.OssProperties;
import com.school.edupoint.template.OssTemplate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
//@EnableAsync异步删除
@EnableAsync
@SpringBootApplication
@MapperScan("com.school.edupoint.mapper")
@EnableConfigurationProperties(OssProperties.class)
@EnableScheduling
public class EduPointApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduPointApplication.class, args);
    }


    @Bean
    public OssTemplate ossTemplate(OssProperties ossProperties){
        return new OssTemplate(ossProperties);
    }



}
